import Vue from 'vue'

const app = new Vue({
    el: '#root',
    // template: '<div v-bind:id="aaa" v-on:click="handleClick"><p v-html="html"></p></div>',
    // template: `
    //     <div :class="{active: isActive}">
    //         <p v-html="html"></p>
    //     </div>
    // `,
    template: `
        <div :class="[]">
            <p v-html="html"></p>
        </div>
    `,
    data: {
        text: '123',
        isActive: true,
        html: '<span>abc</span>',
        aaa: 'box'
    },
    methods: {
        handleClick(e){
            console.log(this)
        }
    }
})